# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=jupyter-nbformat
pkgver=5.4.0
pkgrel=1
pkgdesc="Reference implemtnation of the jupyter notebook format"
url="https://github.com/jupyter/nbformat"
arch="noarch"
license="BSD-3-Clause"
makedepends="py3-setuptools"
depends="py3-traitlets py3-jsonschema py3-fastjsonschema py3-jupyter_core py3-ipython_genutils"
checkdepends="py3-pytest py3-testpath"
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter/nbformat/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/nbformat-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
f601438193bfcb11f1ceed74995ab6862ff8c916f9bddabe38fd70bb997f4407bede4318ae7034d75424b20b75846010ddda2a45b8fe8de6dd9310617b00fb9d  jupyter-nbformat-5.4.0.tar.gz
"
